package com.uaf.vxalipaybill.provider.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @filename Config
 * @description 配置参数管理
 * @autor 王承
 * @date 2021/9/9 13:53
 */
@Configuration
public class Config {

	/**端口*/
	@Value("${vxalipaybill.mail.receiver.host}")
	public String host;

	/**端口*/
	@Value("${vxalipaybill.mail.receiver.port}")
	public String port;

	/**用户名*/
	@Value("${vxalipaybill.mail.receiver.username}")
	public String userName;

	/**密码*/
	@Value("${vxalipaybill.mail.receiver.password}")
	public String password;

	/**识别支付宝微信pdf的远程链接*/
	@Value("${vxalipaybill.mail.receiver.pdf}")
	public String pdf;

	/**定时任务时间*/
	@Value("${vxalipaybill.mail.receiver.cron}")
	public String cron;

	/**扫描几分钟内的邮件*/
	@Value("${vxalipaybill.mail.receiver.scanCron}")
	public int scanCron;

	/**微信账单发件人邮箱*/
	@Value("${vxalipaybill.mail.vx.sender}")
	public String vxSendEmail;

	/**支付宝账单发件人邮箱*/
	@Value("${vxalipaybill.mail.alipay.sender}")
	public String alipaySendEmail;

	/**ftp上传路径*/
	@Value("${vxalipaybill.mail.downloadUrl}")
	public String downloadUrl;

	/**ftp归档路径*/
	@Value("${vxalipaybill.mail.historyUrl}")
	public String historyUrl;

	/**本地路径*/
	@Value("${vxalipaybill.mail.vxalipaybill_ftp_local_tmp}")
	public String localUrl;

	/** pdf上传服务地址 */
	@Value("${vxalipaybill.file.upload.filesystemUrl}")
	public String fileSystemUrl;

	/** 上传商户ID */
	@Value("${vxalipaybill.file.upload.merchantId}")
	public String merchantId;

	/** 上传商户ksy */
	@Value("${vxalipaybill.file.upload.merchantKey}")
	public String merchantKey;

	/**是否为测试环境 true:是，false:否*/
	@Value("${vxalipaybill.isTest}")
	public boolean isTest;

	/**15天内推*/
	@Value("${vxalipaybill.daySize}")
	public int daySize;

	/**redis缓存挡板*/
	@Value("${vxalipaybill.redis.interceptor.time}")
	public int redisTime;

}
